package cn.edu.stu.syllabus.utils;

import android.content.res.Configuration;

import cn.edu.stu.syllabus.application.SyllabusApplication;

/**
 * Created by daidaijie on 2017/1/8.
 * 判断屏幕的横纵状态的工具类
 */

public class ScreenOriUtil {

    public final static boolean isPortrait() {
        return SyllabusApplication.getContext().getResources().getConfiguration().orientation ==
                Configuration.ORIENTATION_PORTRAIT;
    }
}
